package p.lodz.pl.poid.zad2.controller;

/**
 *
 * @author janiu
 */
public class SegmentationData {
    
    private boolean isSimpleComparison = false;
    private boolean isEuclideanComparison = false;
    private boolean isLuminanceComparison = false;
    private boolean isInverse = false;
    private boolean isColorArea = false;
    private boolean isShowGrid = false; 
    private Integer fillOption = 0;
    private Integer regionNumber;    
    private Integer value = 0;

    public boolean isSimpleComparison() {
        return isSimpleComparison;
    }

    public void setSimpleComparison(boolean isSimpleComparison) {
        this.isSimpleComparison = isSimpleComparison;
    }

    public boolean isEuclideanComparison() {
        return isEuclideanComparison;
    }

    public void setEuclideanComparison(boolean isEuclideanComparison) {
        this.isEuclideanComparison = isEuclideanComparison;
    }

    public boolean isLuminanceComparison() {
        return isLuminanceComparison;
    }

    public void setLuminanceComparison(boolean isLuminanceComparison) {
        this.isLuminanceComparison = isLuminanceComparison;
    }

    public Integer getValue() {
        return value;
    }

    public void setValue(Integer value) {
        this.value = value;
    }

    public boolean isInverse() {
        return isInverse;
    }

    public void setInverse(boolean isInverse) {
        this.isInverse = isInverse;
    }

    public boolean isColorArea() {
        return isColorArea;
    }

    public void setColorArea(boolean isColorArea) {
        this.isColorArea = isColorArea;
    }

    public boolean isShowGrid() {
        return isShowGrid;
    }

    public void setShowGrid(boolean isShowGrid) {
        this.isShowGrid = isShowGrid;
    }

    public Integer getFillOption() {
        return fillOption;
    }

    public void setFillOption(Integer fillOption) {
        this.fillOption = fillOption;
    }

    public Integer getRegionNumber() {
        return regionNumber;
    }

    public void setRegionNumber(Integer regionNumber) {
        if(regionNumber >= 0) {
            this.regionNumber = regionNumber;            
        } else {
            this.regionNumber = null;
        }
    }
    
}
